﻿@model IEnumerable<Business>

@{
    ViewBag.Title = "ManagerIndex";
}

<table data-role="table" data-mode="columntoggle" id="my-table" data-filter="true">
    <tr>
        <th>
          @*  @Html.DisplayNameFor(model => model.BusinessName)*@
            Name
        </th>
        <th>
           @* @Html.DisplayNameFor(model => model.BusinessType.BusinessTypeName)*@
            Type
        </th>
        <th>
           @* @Html.DisplayNameFor(model => model.StartingDate)*@
            Starting Date
        </th>

        <th>
           @* @Html.DisplayNameFor(model => model.StartingDate)*@
            Street Name
        </th>

        <th>
           @* @Html.DisplayNameFor(model => model.StartingDate)*@
            Stall Number
        </th>

        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.BusinessName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BusinessType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartingDate)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.StreetName)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.stallNumber)
        </td>
        <td>
            @Html.ActionLink("Access", "ManagerOperations", new { id = item.BusinessId }) 
        </td>
    </tr>
}
    
</table>
